package com.mmall.service;

import com.mmall.common.ServiceResponse;
import com.mmall.vo.CartVo;

/**
 * Created by sc on 2017/8/29.
 */

public interface ICartService {
    ServiceResponse<CartVo> add(Integer userid, Integer productId, Integer count);

    ServiceResponse<CartVo> update(Integer userid, Integer productId, Integer count);

    ServiceResponse<CartVo> delete(Integer userid, String productids);

    ServiceResponse<CartVo> list(Integer userid);

    ServiceResponse<CartVo> selectorUnselect(Integer userid, Integer checked, Integer productid);

    ServiceResponse<Integer> getCartProductCount(Integer userid);
}
